<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table{
            border-collapse: collapse;
            caret-color: indianred;
        }
        tr:first-child>td{
            text-align: center;
        }
        td:last-child{
            text-align: center;
        }
        tr:hover{
            color: blanchedalmond;
        }
        a{
            text-decoration: none;
        }
    </style>
</head>
<body>
<a href="{% url 'app:index' %}">人员表表</a> |
<a href="{% url 'app:go' %}">退出</a>
<div align="center">
<h1>发布会名单</h1>
    <a href="">增加一条数据</a>
    <hr>
    <form action="">
    <table border="1" bgcolor="#f08080">
        <tr>
            <th>发布会</th>
            <th>人数</th>
            <th>状态</th>
            <th>地址</th>
            <th>开始时间</th>
            <th>结束时间</th>
            <th>操作</th>
        </tr>
        {% for i in guests %}
        <tr>
            <td>
                {{ i.name }}
            </td>
            <td>{{ i.limit}}</td>
            <td>{{ i.startus}}</td>
            <td>{{ i.address}}</td>
            <td>{{ i.start_time}}</td>
            <td>{{ i.create_time}}</td>
            <td>
                <a href="{% url 'app:sin' i.id %}">签到</a>
            </td>
        </tr>
        {% endfor %}
    </table>
    </form>
    <div>
        <span>
        {% if guests.has_previous %}
            <a href="?page={{ guests.previous_page_number }}">上一页</a>
        {% endif %}
        <span>
            第{{ guests.number }}页 共{{ guests.paginator.num_pages }}页
        </span>
        {% if guests.has_next %}
            <a href="?page={{ guests.next_page_number }}">下一页</a>
        {% endif %}
        </span>
    </div>
</div>
</body>
</html>